package com.ejd.web.vo.genl;

import java.util.List;





import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.model.SelectItem;



import com.ejd.utils.MessageFactory;
import com.ejd.web.constant.EjdConstants;

@SuppressWarnings("serial")
@ManagedBean(name="existInvoiceType")
@SessionScoped
public class ExistInvoiceTypeBean implements java.io.Serializable {

	private SelectItem[] invoiceTypeItems;

	public SelectItem[] getInvoiceTypeItems() {
		return invoiceTypeItems;
	}

	public void setInvoiceTypeItems(SelectItem[] invoiceTypeItems) {
		this.invoiceTypeItems = invoiceTypeItems;
	}




	public ExistInvoiceTypeBean() {
		
		SelectItem[] tempInvoiceTypeItems = new SelectItem[2];
		//set select default 
		
		String plainInvoiceN18 = MessageFactory.getMessage(EjdConstants.USER_BUNDLE_NAME,"invoice.type.plain", FacesMessage.SEVERITY_ERROR).getDetail();
		tempInvoiceTypeItems[0] = new SelectItem("plain",plainInvoiceN18);
		String vatInvoiceN18 = MessageFactory.getMessage(EjdConstants.USER_BUNDLE_NAME,"invoice.type.vat", FacesMessage.SEVERITY_ERROR).getDetail();
		tempInvoiceTypeItems[1] = new SelectItem("vat",vatInvoiceN18);
		this.setInvoiceTypeItems(tempInvoiceTypeItems);
	}
}
